﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EventBus.Common
{
    public interface IEvent
    {
        public string AggregateRootId { get; set; }
    }

    public class Event : IEvent
    {
        public string AggregateRootId { get; set; }

        public Event()
        {
            AggregateRootId = Guid.NewGuid().ToString();
        }
    }
}
